﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/AdminMaster.Master" AutoEventWireup="true" CodeBehind="CompanyDelLog.aspx.cs" Inherits="HZ.DrugTrade.Web.Admin.RelationQuery.CompanyDelLog" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <div id="tabnav">
        <ul>
          <li><a href="RelationShipDelLog.aspx">  企业维护配送关系不良记录</a></li>
            <li class="active"><a href="#">  企业不良记录</a></li>
         
        </ul>
    </div>
  
     <div id="tabcontent2">
        <table class="querylist">
            <tr>
                <th>
                    注册号：</th>
                <td align="left">
                    &nbsp;
                    &nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="txtCompanyID" runat="server"></asp:TextBox>
                    </td>
                <td>
                 
                    企业名称：</td>
                <th align="right" style="text-align: left">
                    <asp:TextBox ID="txtCompanyName" runat="server"></asp:TextBox>
                </th>
                <th align="right" style="text-align: left">
                    企业类型：</th>
                <th align="right" style="text-align: left">
                                  <asp:DropDownList ID="DllType" runat="server">
                                    <asp:ListItem Text="(全部)" Value=""></asp:ListItem>
                                    <asp:ListItem Text="生产企业" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="经营企业" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="配送企业" Value="2"></asp:ListItem>
                                </asp:DropDownList></asp:TextBox>
                </th>
                <td>
                   <asp:Button ID="btnSelect" Width="35" Text="查询" runat="server" CssClass="btn" OnClick="btnSelect_Click" />
                    </td>
            </tr>
            </table>
    </div>
    <asp:GridView ID="gvwProduceCatalog" CssClass="mainlist" runat="server" AutoGenerateColumns="False"
        EmptyDataText="暂无符合条件的数据！" >
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
           
             <asp:BoundField DataField="CompanyID" HeaderText="注册号" ReadOnly="true" />
               <asp:BoundField DataField="CompanyName" HeaderText="企业名称" ReadOnly="true" />
              <asp:TemplateField HeaderText="企业类型">
                <ItemTemplate>
                    <asp:Label ID="lblCompanyType" runat="server" Text='<%#Eval("CompanyType")%>'></asp:Label>
                </ItemTemplate>
              </asp:TemplateField>
          <asp:BoundField DataField="Num" HeaderText="不良记录" ReadOnly="true" />
           <asp:TemplateField HeaderText="详细">
                <ItemTemplate>
                    <a href="CompanyDelLogDetail.aspx?CompanyID=<%# Eval("CompanyID") %>">
                       查看详细</a>
                </ItemTemplate>
                <HeaderStyle Width="300px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listip">
        <ul>
            <li>
                <hz:HzButton ID="btnExport" runat="server" CssClass="btn" 
                    onclick="btnExport_Click" Text="导出Excel" ToolTip="导出当前的企业的不良记录" />
        </ul>
    </div>



</asp:Content>
